package com.example.slidemenu;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        SlideMenu slideMenu = findViewById(R.id.slide_menu);
        slideMenu.setOnFunctionClickListener(new SlideMenu.OnFunctionClickListener() {
            @Override
            public void onReadClickListener(View v) {
                Toast.makeText(MainActivity.this, "你点击了已读", Toast.LENGTH_SHORT).show();
            }

            @Override
            public void onTopClickListener(View v) {
                Toast.makeText(MainActivity.this, "你点击了置顶", Toast.LENGTH_SHORT).show();
            }

            @Override
            public void onDeleteClickListener(View v) {
                Toast.makeText(MainActivity.this, "你点击了删除", Toast.LENGTH_SHORT).show();
            }
        });
    }
}